package com.demo.studentmanager.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.demo.studentmanager.dto.LeaveAddDto;
import com.demo.studentmanager.dto.LeaveAuditListDto;
import com.demo.studentmanager.entity.LeaveAudit;
import com.demo.studentmanager.vo.LeaveAuditVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author lzx
 */
@Repository
public interface LeaveAuditMapper extends BaseMapper<LeaveAudit> {
    //查看离校学生
    IPage<LeaveAuditVo> getLeaveStu(IPage<LeaveAuditVo> page, @Param("leaveSearch") LeaveAuditListDto leaveAuditListDto);

    //添加请假单
    void addLeaveStu(@Param("addLeave") LeaveAddDto leaveAddDto);

//    void upLeaveStu(@Param("upLeave") LeaveUpDto leaveUpDto);

}
